
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.marist.cs.os.g3.mos;

/**
 *
 * @author Intern
 */
public class Word {
    /*
    char[] word = new char[4];
    public Word(String word) {
        this.word = word.toCharArray();
    }
    
    public String toString() {
        return new String(word);
    }
     
     */
    String word;
    boolean empty;
    public Word(String word) {
        this.word = word;
        empty = false;
    }
    
    public Word() {
        empty = true;
        word = "    ";
    }
    
    public String toString() {
        return word;
    }
    public String grabData(){
        return word;
    }
    public boolean isEmpty() {
        return empty;
    }
    
    public void setData(String data) {
        word = data;
        empty = false;
   }
}
